x-load-color-file: avoid array bounds error
authorJim Meyering <jim@meyering.net>
Tue, 9 Jun 2009 05:57:35 +0000 (05:57 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 9 Jun 2009 05:57:35 +0000 (05:57 +0000)
commit24cf61162a8674c07f8d9f661952856d76317097
treec0a8a53ef2359684d3dbadda99a5b728a0073068
parent606c996760216cd6e303b9b32ae9d54f56af098e
x-load-color-file: avoid array bounds error

x-load-color-file expects each line of input to be of the form
"R G B name".  But if "name" is missing, it would read name[-1],
and if that value is '\n', zero it.
* xfaces.c (Fx_load_color_file): Handle missing color name.
src/ChangeLog
src/xfaces.c